/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: Bus
 * Author:   xbliu
 * Date:     2020/6/28 15:14
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * xbliu           修改时间           版本号              描述
 */
package c_005;

/**
 * @Classname Bus
 * @Description TODO
 * @Date 2020/6/28 15:14
 * @Created by xbliu
 */
public class Bus extends MotoVehicle{
    private int setDown;


    public Bus(int setDown) {
        this.setDown = setDown;
    }

    public Bus(int no, String brand, int setDown) {
        super(no, brand);
        this.setDown = setDown;
    }

    @Override
    public int calcRent(int day) {
        if (setDown>16){
            return day * 1600;
        }else{
            return day * 1000;
        }
    }
}
